﻿@model ECatalog.Models.ServerParam
<div class="container">
    <div class="row col-lg-3">
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)

            <fieldset>
                <legend>Параметры сервера</legend>

                <div class="editor-label">
                    IP сервера
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.ServerIp, new {@class="form-control"})
                    @Html.ValidationMessageFor(model => model.ServerIp)
                </div>

                <div class="editor-label">
                    ID клиента
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.ClientId,new {@class="form-control"})
                    @Html.ValidationMessageFor(model => model.ClientId)
                </div>

                <div class="editor-label">
                    Организация
                </div>
                <div class="editor-field">
                    @Html.DropDownList("OrganizationId", String.Empty)
                    @Html.ValidationMessageFor(model => model.OrganizationId)
                </div>

                <div class="editor-label">
                   Магазин
                </div>
                <div class="editor-field">
                    @Html.DropDownList("ShopId", String.Empty)
                    @Html.ValidationMessageFor(model => model.ShopId)
                </div>
                <br/>
                <p>
                    <input type="submit" value="Создать" class="btn btn-primary"  />
                </p>
            </fieldset>
        }
        <div>
            @Html.ActionLink("Назад", "Index")
        </div>
    </div>
</div>
